package Model.useless;

public class BookForm {
    private Integer id;

    private String bookname;
    private Integer typeid;
    private String author;
    private String ISBN;
    private Double price;
    private Integer page;
    private Integer iddelete;

    public void setId(Integer id) {
        this.id = id;
    }
    public static String typename(Integer typeid){
        switch (typeid){
            case 1:
                return "计算机";
            case 2:
                return "医学";
            case 3:
                return "数学";
            case 4:
                return "工程学";
            case 5:
                return "语言学";
                default:
                    return "其他";
        }
    }
    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public void setISBN(String ISBN) {
        this.ISBN = ISBN;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public void setIddelete(Integer iddelete) {
        this.iddelete = iddelete;
    }

    public Integer getId() {

        return id;
    }

    public String getBookname() {
        return bookname;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public String getAuthor() {
        return author;
    }

    public String getISBN() {
        return ISBN;
    }

    public Double getPrice() {
        return price;
    }

    public Integer getPage() {
        return page;
    }

    public Integer getIddelete() {
        return iddelete;
    }
}
